import Main from '@/components/main'

export default [
  {
    path: '/login',
    name: 'login',
    meta: {
      title: 'Login - 登录',
      hideInMenu: true
    },
    component: () => import('@/views/login/login.vue')
  },
  {
    path: '/',
    name: '_home',
    redirect: '/home',
    component: Main,
    meta: {
      hideInMenu: true,
      notCache: true
    },
    children: [
      {
        path: '/home',
        name: 'home',
        meta: {
          hideInMenu: true,
          title: '首页',
          notCache: true,
          icon: 'md-home'
        },
        component: () => import('@/views/single-page/home')
      }
    ]
  },
  {
    path: '/404',
    name: 'login',
    meta: {
      title: '401',
      hideInMenu: true
    },
    component: () => import('@/views/error-page/404.vue')
  },
  {
    path: '/components',
    name: 'components',
    meta: {
      icon: 'logo-buffer',
      title: '异常页面'
    },
    component: Main,
    children: [
      {
        path: 'error-page',
        name: 'error-page',
        meta: {
          icon: '_qq',
          title: '401'
        },
        component: () => import('@/views/error-page/401.vue')
      }
, {
        path: 'count_to_page',
        name: '500',
        meta: {
          icon: 'ios-backspace',
          title: '500'
        },

      },
      {
        path: 'org_tree_page',
        name: '404',
        meta: {
          icon: 'md-trending-up',
          title: '404'
        },
        component: () => import('@/views/error-page/404.vue')
      }
    ]
  }

]
